import React from 'react';
import NotFountPng from './images/404.png';
import { Link } from 'react-router-dom';
import { Icon } from 'antd';
import './index.less';

const NotFound = () => {
  return (
    <div className="not-found">
      <div className="not-found__body">
        <img className="img" src={NotFountPng} />
        <p className="desc">页面找不到了</p>
        <a href={window.location.href} target="_self">
          刷新一下试试
          <Icon type="redo" />
        </a>
        <Link to="/" className="goto-home">
          跳转回首页
        </Link>
      </div>
    </div>
  );
};

export default NotFound;
